<?php
/**
 * Created by PhpStorm.
 * User: Vlad
 * Date: 12/30/13
 * Time: 8:03 PM
 */

class GivenAnswer
{
    const Undefined = -1;
    const Yes = 0;
    const No = 1;
    const DontKnow = 2;
    const ProbablyYes = 3;
    const ProbablyNo = 4;

    public static function ToSQLColumn($answer)
    {
        switch ($answer)
        {
            case GivenAnswer::Yes:
                return "YesCount";
            case GivenAnswer::No:
                return "NoCount";
            case GivenAnswer::DontKnow:
                return "UnknownCount";
            case GivenAnswer::ProbablyYes:
                return "ProbablyYesCount";
            case GivenAnswer::ProbablyNo:
                return "ProbablyNoCount";
            default:
                return "UNDEFINED";
        }
    }
}
